package com.woniuxy.feign;

import com.woniuxy.feign.hystrix.UtilHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fengyao
 * @version 1.0
 * @date 2019/9/28 0028 上午 9:57
 */
@FeignClient(value = "util-server",fallback = UtilHystrix.class)
public interface UtilFeign {
    @GetMapping("/sms/sendtime/{phone}/{time}/{good}")
    public String sendTime(@PathVariable("phone") String phone, @PathVariable("time") String time, @PathVariable("good") String good);
}
